]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Sync initial state of the message indicator
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 20 Feb 2020 18:57:20 +0000 (19:57 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 25 Feb 2020 15:47:29 +0000 (16:47 +0100)
While the unread messages indicator is updated when starting a new
session because we call _onSourceAdded() on existing sources, we should
also update the do-not-disturb setting which might still be enabled.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1037

js/ui/dateMenu.js

index 9d1de44b154c12c937a577ea9c473365c5d9d374..c6c1b5bb5a35cd5e27055c0b07f42fbb7dfc2e74 100644 (file)
@@ -454,6 +454,8 @@ class MessagesIndicator extends St.Icon {
         let sources = Main.messageTray.getSources();
         sources.forEach(source => this._onSourceAdded(null, source));
 
+        this._sync();
+
         this.connect('destroy', () => {
             this._settings.run_dispose();
             this._settings = null;